package com.example.good.mapper;

import com.example.good.entity.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.Date;

@Mapper
public interface UserMapper {
    Integer insert(User user);
    User findByUsername(String username);
    Integer updatePasswordByUid(
            Integer uid,
            String password,
            String modifiedUser,
            Date modifiedTime
    );
    User findByUid(Integer uid);
    Integer updateInfoByUid(User user);
    Integer updateCodeByUid(
            Integer uid,
            String temporaryCode
    );
}